﻿<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:cal="http://www.codeplex.com/CompositeWPF"

    x:Class="TfsAlert.Shell"

    Title="TFSAlert by Clark Sell | http://codeplex.com/tfsalert"
    WindowStyle="ThreeDBorderWindow"
    WindowState="Normal"
    FontSize="12"
    FontFamily="Segoe UI"
    Background="Black"
    Foreground="#FFF" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" d:DesignHeight="830" d:DesignWidth="1351">
    
    <Grid
        Background="#101010" 
        ShowGridLines="true" 
        Margin="5,5,5,5">

        <Grid.RowDefinitions>
        	<RowDefinition Height="105" />
            <RowDefinition Height="0.6*" />
            <RowDefinition Height="0.2*" />
        </Grid.RowDefinitions>
        
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="0.2*" />
            <ColumnDefinition Width="0.8*" />
            <ColumnDefinition Width="0.2*"/>
        </Grid.ColumnDefinitions>


    	<Grid Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Margin="0,0,0,10">
    		<Border 
    			BorderBrush="#909090" 
    			BorderThickness="0,1,0,0"
    			Margin="0,0,0,4"
    			CornerRadius="10,10,0,0">

    			<Border.Background>
    				<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
    					<GradientStop Offset="0.0" Color="#909090" />
    					<GradientStop Offset="0.7" Color="#505050" />
    				</LinearGradientBrush>
    			</Border.Background>
    			<Border
    				BorderBrush="#333"
    				BorderThickness="0,0,0,1">
    				<ContentPresenter Margin="0,0,0,-1" />
    			</Border>
    		</Border>

    		<Rectangle            
    			VerticalAlignment="Bottom" 
    			Height="10">
    			<Rectangle.Fill>
    				<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
    					<GradientStop Offset="0" Color="#6000" />
    					<GradientStop Offset="1" Color="#0000" />
    				</LinearGradientBrush>
    			</Rectangle.Fill>
    		</Rectangle>
    	</Grid>

        <Label Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" HorizontalAlignment="Left" FontFamily="Papyrus" FontSize="48" Content="Continuous Monitor" Foreground="#FFFFBF00" Background="Transparent" FontWeight="Bold" >
            <Label.BitmapEffect>
                <DropShadowBitmapEffect Direction="315" ShadowDepth="8" Softness="0.25"/>
            </Label.BitmapEffect>
        </Label>

        <!-- ================================================ -->
        <!-- Region Layout -->
        <!-- ================================================ -->

        <ItemsControl cal:RegionManager.RegionName="Header_Right" 
            Grid.Row="0" 
            Grid.Column="0" 
            Grid.ColumnSpan="3"
            HorizontalAlignment="Right"
            VerticalAlignment="Center"/>
        
        <ItemsControl cal:RegionManager.RegionName="Main_Left" 
            Grid.Row="1" 
            Grid.Column="0" />
        
        <ItemsControl cal:RegionManager.RegionName="Main_Center"
            Grid.Row="1" 
            Grid.Column="1" />
        
        <ItemsControl cal:RegionManager.RegionName="Main_Right"
            Grid.Row="1" 
            Grid.Column="2" />
        
        <ItemsControl cal:RegionManager.RegionName="Footer" 
            Grid.Row="2" 
            Grid.Column="0" 
            Grid.ColumnSpan="3"
            HorizontalAlignment="Left"/>
        
    </Grid>

</Window>
